<template>
  <view class="u-datetime-picker">
    <u-datetime-picker :show="show" v-model="value" mode="datetime" @confirm="confirm" />
    <u-button @click="show = true">value：{{value}}</u-button>
  </view>
</template>

<script setup>
import {ref} from "vue";

const show = ref(false)
const value = ref(Date.now())
const confirm = value => {
  value.value = value
  show.value = false
}
</script>

<style lang="less" scoped>

</style>
